/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.common.crypt;


import com.lehe.common.Contants;

/**
 * 类的功能描述<br>
 *
 * @author 王丹
 * @FileName MyTest.java<br>
 * @Language Java<br>
 * @date 2016-01-07<br>
 */
public class MyTest {

    public static void main(String[] args) {
        try {
            WXBizMsgCrypt wxBizMsgCrypt = new WXBizMsgCrypt(Contants.TOKEN_FOR_KWINER, Contants.AES_KEY_FOR_KWINER, Contants.APP_ID);
            String signature,timestamp,nonce,echostr;
            signature = "2b20feb39736e571ccafafa58e57d34e0ea2466a";
            timestamp = "1452159482";
            nonce = "849435541";
            echostr = "191457424477944315";
            String s = wxBizMsgCrypt.verifyUrl(signature, timestamp, nonce, echostr, false);
            System.out.println(s);
        } catch (AesException e) {
            e.printStackTrace();
        }

    }
}
